package com.eccloud.service;

import com.eccloud.service.impl.HelloRemoteHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by yunfeng.wang on 2019/3/26.
 */
@FeignClient(name = "service-client-one",fallback = HelloRemoteHystrix.class)
public interface HelloRemote {
    @RequestMapping(value = "/ClientOne/hello")
    public String hello(@RequestParam(value = "name") String name);
}
